<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> vtor demo </title>
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <meta name="Keywords" content="">
  <meta name="Description" content="">
   <script src='js/jquery.js'> </script>
   <script src='../jquery.vtor.js'> </script>
    <script src='../vconf/vtor.config.js'> </script>
   
	<link rel='stylesheet'  href='../css/vtor.css'/>
	 <style>
	 td{
	     color:#555;
		 font-weight:bold;

	  
	  }
	</style>
  <script>
      $(function(){
	        $vtor.$({
			path:'vtor.vtor',
			view:'model1',
			auto:true//,
			//autoFunc:'change'
			});
           $("#b").click(function(){
				var r=$vtor.$v();
				 alert(r)
		   });
	  })
  </script>
 </head>

 <body>

 <fieldset style='width:500px;background:url(b.jpg)'>
   <div STYLE='background:#ccc;text-align:center;color:blue;font-weight:bold;font-size:16;height:28px;padding:5px;border-bottom:1px solid #aaa;'>Vtor示例-作者JsonZou</div>
	<table>
	<tr><td>电子邮箱地址:</td><td><input type='text' vid='emailAddress' value=''/></td></tr>
	<tr><td>长度:</td><td><input type='text' vid='lenth2' value=''/></td></tr>
	<tr><td>范围:</td><td><input type='text' vid='region3' value=''/></td></tr>
	<tr><td>小数:</td><td><input type='text' vid='float2' value=''/></td></tr>
	<tr><td>比较:</td><td><input type='text' vid='compareNum' value=''/></td></tr>
	<tr><td>整形:</td><td><input type='text' vid='integerNum' value=''/></td></tr>
	<tr><td>中文:</td><td><input type='text' vid='chineseLG' value=''/></td></tr>
	<tr><td>sql注入:</td><td><input type='text' vid='sqlzhuru' value=''/></td></tr>
	<tr><td>ajax:</td><td><input type='text' vid='ajaxDemo' value=''/></td></tr>
	<tr><td>身份证号:</td><td><input type='text' vid='idcard' value=''/></td></tr>
<tr><td>密码确认:</td><td>密&nbsp;&nbsp;&nbsp;&nbsp;码<input type='text'   value='' vid='pwd1'/><br>确认密码<input vid='pwd2' type='text'  value=''/></td></tr>
	<tr><td colspan=2>  <input type='button' id='b' value='submit'style='border:1px solid #aaa;width:80px;height:35px;font-weight:bold;margin:30px auto 20px 150px;' /></td></tr>
	 </table>
  <div STYLE='background:#ccc;text-align:center;color:blue;font-weight:bold;font-size:12px;height:30px;padding:5px;border-bottom:1px solid #aaa;'>
     交流学习QQ群：291631859<br>
	 github地址：<a target='_blank' href='https://github.com/jsonzou/vtor'>https://github.com/jsonzou/vtor</a>

  </div>
  </fieldset>
 </body>
</html>
